import request, { uaaUrl} from '@/utils/request'

export function getSysDictDataLis(query) {
  return request({
    url:uaaUrl()+ 'api-manage/v1/app/frontSysDictData/sysDictDataListForFront',
    method: 'get',
    params: query
  })
}

export function getDepts(parentNo = '01') {
  return getSysDictDataLis({
    dictTypeNo: 'UA',
    dictParentNo: parentNo
  })
}

export function getSysArea(areaCode = '') {
  return request({
    url: uaaUrl()+ `api-data-dim/v1/area/cascadeListByCodeId?codeParentId=${areaCode}`
  })
}

